<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<head>
	<title>Login One</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/yuejian8/Public/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="/yuejian8/Public/css/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="/yuejian8/Public/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
	<link href="/yuejian8/Public/css/templatemo_style.css" rel="stylesheet" type="text/css">	
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" ></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.3/umd/popper.min.js" ></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	
</head>
<body class=" templatemo-bg-image-2">
	<div class="container">
		<div class="col-md-12">
			
			<div class="form-horizontal templatemo-container templatemo-login-form-1" style=" margin-top:20px" role="form">
 <ul id="myTab" class="nav nav-tabs">
    <li class="active">
    <a href="#login" data-toggle="tab" >
            登录
    </a>
    </li>
    <li><a href="#regist" data-toggle="tab">注册</a></li>
  
</ul>
<div id="myTabContent" class="tab-content" >
     <div class="tab-pane fade in active" id="login" >
     <form  method="post" action="<?php echo U('checkLogin');?>" enctype="multipart/form-data">
       <img src="/yuejian8/Public/pic/logo.png" class="img-circle center-block">				
		        <h1 class="margin-bottom-15 ">Login</h1>
                <div class="form-group">
		          <div class="col-xs-12">		            
		            <div class="control-wrapper">
		            	<label for="username" class="control-label fa-label"><i class="fa fa-user fa-medium"></i></label>
		            	<input type="text" class="form-control" id="uname" name="uname" placeholder="用户名">
		            </div>		            	            
		          </div>              
		        </div>
		        <div class="form-group"> 
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class="fa fa-lock fa-medium"></i></label>
		            	<input type="password" class="form-control" id="upassword" name="upassword" placeholder="密码">
		            </div>
		          </div>
		        </div>

<div class="form-group"> 
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class="fa fa-lock"></i></label>
		            	<select name="contents">
  <option value="1" id='1'>俱乐部管理员</option>
  <option value="2" id='2'>超级管理员</option>
  
</select>
		            </div>
		          </div>
		        </div>



		        <!-- <div class="form-group">
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class="fa verifyImg"></i></label>
		            	  <input class="form-control" placeholder="验证码" type="text" style=" width: 100px;float: left;"   required  name="verify">
                    <img id="verifyImg" src="<?php echo U('verify');?>" style="float: left; height: 50px;" onClick="fleshVerify()"  
					title="点击刷新验证码"  >
		            </div>
		          </div>
		        </div>
 -->
		        <div class="form-group">
		          <div class="col-md-12">
	             	<div class="checkbox control-wrapper">
	                	<label>
	                  		<input type="checkbox">记住密码
                		</label>
	              	</div>
		          </div>
		        </div>
		        <div class="form-group">
		          <div class="col-md-12">
		          	<div class=" text-center">
		          		<input type="submit" value="登录" class="btn btn-info" style="width:100px;">
                        
		          		<a href="#" class="text-right pull-right">忘记密码?</a>
		          	</div>
		          </div>
		        </div>
		    </form>
    </div>
    <div class="tab-pane fade" id="regist">
    <form method="post" action="<?php echo U('regist');?>" enctype="multipart/form-data">
        <h1 class="margin-bottom-15 ">Regist</h1>
       <div class="form-group">
		          <div class="col-xs-12">		            
		            <div class="control-wrapper">
		            	<label for="username" class="control-label fa-label"><i class="fa fa-user fa-medium"></i></label>
		            	<input type="text" class="form-control" id="uname" name="uname"  required="required" placeholder="用户名(必填)">
		            </div>		            	            
		          </div>              
		        </div>
		        <div class="form-group">
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class="fa fa-lock fa-medium"></i></label>
		            	<input type="password" class="form-control" id="upassword" name="upassword" required="required" placeholder="密码(必填)">
		            </div>
		          </div>
		        </div>
		        <div class="form-group">
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class="fa fa-lock fa-medium"></i></label>
		            	<input type="password" class="form-control" id="unewpassword" name="unewpassword" required="required" placeholder="重复密码(必填)">
		            </div>
		          </div>
		        </div>
                 <div class="form-group">
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class=" fa fa-phone"></i></label>
		            	<input type="text" class="form-control" id="uphonenumber" name="uphonenumber"
		            	 placeholder="手机号码(必填)" required="required" pattern="[0-9]{11}" title="请填写正确的手机号">
		            </div>
		          </div>
		        </div>
                 <div class="form-group">
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class="fa fa-road"></i></label>
		            	<input type="text" class="form-control" id="uadress" name="uadress" placeholder="地址">
		            </div>
		          </div>
		        </div>
                 <div class="form-group">
		          <div class="col-md-12">
		          	<div class="control-wrapper">
		            	<label for="password" class="control-label fa-label"><i class=" fa fa-photo"></i></label>
		            	<input type="file"  id="uphoto" name="uphoto">
		            </div>
		          </div>
		        </div>
                <div class="form-group">
		          <div class="col-md-12">
		          	<div class=" text-center" >
                        <input type="submit" value="注册" class="btn btn-info" style="width:100px" >
		          	</div>
		          </div>
		        </div>
		    </form>
    </div>
    
</div>
<script>
	$(function () {
		$('#myTab li:eq(1) a').tab('shown');
	});
</script> 
<script>
        function check(){
            var password = document.getElementById("upassword").value;
            var repsword = document.getElementById("unewpassword").value;
        if(password == ''||repsword==''){
        alert('密码不能为空');
            return false;
        }
        if(password != repsword) {
        alert("两次密码不同，请重新输入");
            return false;
        }
       return true;
        }
    </script>
    <!--  <script language="JavaScript">
      function fleshVerify(){
        document.getElementById("verifyImg").src="<?php echo U('verify');?>";
	  }
     </script> -->
		      </div>
		      
		</div>
	</div>
</body>
</html>